/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.psi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author chopin
 */
@Controller
public class LoginController {
    
    @RequestMapping(value = "/login.do")
    public ModelAndView login(String userName,String password){
        System.out.println("username = "+userName+" , password = "+password);
        ModelAndView mv = new ModelAndView("jsp/index");
        mv.addObject("userName", userName);
//        EntityManagerFactory factory;
//        SqlSessionFactoryBean sql;
        return mv;
    } 
}
